home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5940 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: axl.dialup.fu-berlin.DE!not-for-mail
  2. From: axl@zedat.fu-berlin.de (Axel Thimm)
  3. Newsgroups: gnu.g++.help,comp.lang.c++,comp.sys.sgi.apps,comp.sys.sgi.misc
  4. Subject: Re: SGI and C++
  5. Date: Wed, 07 Feb 1996 15:49:45 GMT
  6. Organization: FU Berlin
  7. Message-ID: <4fahih$s13@fu-berlin.de>
  8. References: <4f609s$rho@fu-berlin.de> <4f6726$4ch@fido.asd.sgi.com>
  9. Reply-To: axl@zedat.fu-berlin.de
  10. NNTP-Posting-Host: axl.dialup.fu-berlin.de (160.45.218.93)
  11. X-Access: 16 17 19
  12. X-Newsreader: Forte Free Agent 1.0.82
  13.  
  14. shankar@engr.sgi.com (Shankar Unni) wrote:
  15.  
  16. >Axel Thimm (axl@zedat.fu-berlin.de) wrote:
  17.  
  18. >>  I tried CC and cc but e.g. neither recognizes 'bool' as an integrated
  19. >> type. Are there any flags, I should have put into the compiler line? I
  20. >> looked at the man pages but found nothing. The C++ progs have .cc
  21. >> suffices.
  22.  
  23. >C doesn't have a bool type anyway. The C++ bool type is relatively new, and
  24. >the 6.1 compiler doesn't have it. The -64 and -n32 compilers on Irix 6.2
  25. >will recognize bool.
  26.  
  27. >In the meantime, there's a simple source workaround for bool, which will
  28. >interoperate with the real bool when you get Irix 6.2 (after its release):
  29.  
  30. [...]
  31.  
  32. Well, overcoming the bool problem is not very difficult, enums, classes
  33. or defines can help there. (I have received a lot of email about that,
  34. thank you all).
  35. My fears are that it will not stop there. Even gcc violated many ARM
  36. (not yet ANSI/ISO) rules, which should have become standard since 1990.
  37. I refer to the template problems mostly (gcc 2.7.x has cured a lot of
  38. those violations.)
  39. In another thread I read about how much better gcc conforms to the
  40. standards compared to CC. So it seems to me that CC might also have
  41. problems with templates. I think that incorporating bool types should
  42. not be a problem for the compiler writers, fixing template classes will
  43. almost certainly be.
  44. Is there someone with experience in template programming under CC? If
  45. pointed to the problems one could possibly avoid defining problematic
  46. templates.
  47.  
  48. Thank you,
  49.     Axel Thimm
  50. ===
  51. Axel Thimm <axl@zedat.fu-berlin.de>
  52. Freie Universitaet Berlin
  53. ===
  54.  
  55.